﻿using Library;
using Shared;

namespace App
{
   internal class Program
   {
      private static void Main()
      {
         // write a program that copies characters from the keyboard
         // to the printer

         // Should also be able read from a paper tape reader
         //     can't change the interface

         Copier.Writer = new PunchCardWriter();

         Copier.Copy();
      }

      private class PunchCardWriter : IWriter
      {
         public void Write(char c)
         {
            PaperTape.Punch(c);
         }
      }
   }
}